home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
dskutil
/
dkcare20.zip
/
INSTALL.BAT
< prev
Wrap
DOS Batch File
|
1995-01-24
|
4KB
|
98 lines
@echo off
cls
If %1a == a goto Syntax
If %2a == a goto Syntax
echo.
echo ╔═══════════════════════════════════════════════════════╗
echo ║ WELCOME TO THE INSTALLATION PROGRAM FOR DiskCare v2.0 ║
echo ╚═══════════════════════════════════════════════════════╝
echo.
echo DiskCare v2.0 will be installed to %1%2
echo.
choice /cyn "Do you wish to continue "
If errorlevel=2 goto alt
If errorlevel=1 goto continue
:continue
echo.
echo Making the %1%2 directory.
md %1%2
echo.
echo Unpacking to %1%2
disk %1%2
echo.
echo For your Convenience a BATCH file has been provided. If your Destination
echo Directory is different from C:\DISKCARE, then you must edit it. It will
echo be MOVED to C:\DOS.
echo.
echo Press Space Bar To Continue
pause>disk$$$$.tmp
del disk$$$$.tmp
copy %1%2\disk.bat
copy disk.bat c:\dos
echo.
choice /c:yn "Whould you like the Installation Files Deleted "
If errorlevel=2 goto bye
If errorlevel=1 goto next
:next
echo.
echo Deleting Installation files.
echo.
del disk.exe
del file_id.diz
del disk.bat
echo Installation Complete. Type 'DISK' to run.
del install.bat
goto end
:alt
cls
echo ╔════════════════════╗
echo ║ ALTERNATE METHOD ╠═══════════════════════════════════════════════════════╗
echo ╚═╦══════════════════╝ ║
echo ║ ║
echo ║ The alternate method for installation is: ║
echo ║ ║
echo ║ 1. Make desired directory. ║
echo ║ 2. Copy/Move DISK.EXE to that Directory. ║
echo ║ 3. Type 'DISK'. This will unpack the program. ║
echo ║ 4. Delete DISK.EXE, FILE_ID.DIZ & INSTALL.BAT ║
echo ║ 5. Copy/Move DISK.BAT to one of the Directories in your PATH statement ║
echo ║ 6. Type 'DISK' to run. ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo Your PATH statement:
echo %path%
echo.
echo DiskCare v2.0 wasn't installed Correctly. Please try again.
goto end
:syntax
echo.
echo.
echo ╔════════════════════╗
echo ║ INSTALLATION ERROR ╠═══════════════════════════════════════════════════════╗
echo ╚═╦══════════════════╝ ║
echo ║ ║
echo ║ The proper syntax to install Diskcare v2.0 is: ║
echo ║ ║
echo ║ INSTALL [DRIVE:] [\PATH] ║
echo ║ ║
echo ║ Example: ║
echo. ║ ║
echo ║ Install C: \DISKCARE NOTE: There is a space between C: and \diskcare ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo DiskCare v2.0 wasn't installed Correctly. Please try again.
goto end
:bye
echo.
echo Installation Complete, Type 'DISK' to run.
goto end
:end
echo.